package com.erp.programmer.dto;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author czh
 * @since 2021-05-24
 */
public class IncomingInspectionOrderDto implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 进库验货单号 进库验货单唯一标识
     */
    private String id;

    /**
     * 采购单号 哪个采购单的进库验货单
     */
    private String purchaseId;

    /**
     * 纸厂标签重量 总重量 单位g
     */
    private BigDecimal totalWeight;

    /**
     * 总数量 该进库验货单的全部商品数量
     */
    private String totalNumber;

    /**
     * 验货状态 1.已验货 2未验货
     */
    private Integer inspectState;

    /**
     * 验货日期 生成验货单的日期
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date inspectDate;

    private List<IncomingInspectionDetailsOrderDto> incomingInspectionDetailsOrderDtos;

    public IncomingInspectionOrderDto() {
    }

    public IncomingInspectionOrderDto(String id, String purchaseId, BigDecimal totalWeight, String totalNumber, Integer inspectState, Date inspectDate, List<IncomingInspectionDetailsOrderDto> incomingInspectionDetailsOrderDtos ) {
        this.id = id;
        this.purchaseId = purchaseId;
        this.totalWeight = totalWeight;
        this.totalNumber = totalNumber;
        this.inspectState = inspectState;
        this.inspectDate = inspectDate;
        this.incomingInspectionDetailsOrderDtos = incomingInspectionDetailsOrderDtos;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(String purchaseId) {
        this.purchaseId = purchaseId;
    }

    public BigDecimal getTotalWeight() {
        return totalWeight;
    }

    public void setTotalWeight(BigDecimal totalWeight) {
        this.totalWeight = totalWeight;
    }

    public String getTotalNumber() {
        return totalNumber;
    }

    public void setTotalNumber(String totalNumber) {
        this.totalNumber = totalNumber;
    }

    public Integer getInspectState() {
        return inspectState;
    }

    public void setInspectState(Integer inspectState) {
        this.inspectState = inspectState;
    }

    public Date getInspectDate() {
        return inspectDate;
    }

    public void setInspectDate(Date inspectDate) {
        this.inspectDate = inspectDate;
    }

    public List<IncomingInspectionDetailsOrderDto> getIncomingInspectionDetailsOrderDtos() {
        return incomingInspectionDetailsOrderDtos;
    }

    public void setIncomingInspectionDetailsOrderDtos(List<IncomingInspectionDetailsOrderDto> incomingInspectionDetailsOrderDtos) {
        this.incomingInspectionDetailsOrderDtos = incomingInspectionDetailsOrderDtos;
    }
}
